const lock_field = {
    "addDisplay": false,
    "addDisabled": false,
    "editDisplay": false,
    "editDisabled": true,
    "showColumn": false,
};
export const tableOption = {
    "border": true,
    "index": true,
    "indexLabel": "序号",
    "stripe": true,
    "menuAlign": "center",
    "align": "center",
    "searchMenuSpan": 6,
    "span": 24,
    dialogWidth: 800,
    "column": [{
        ...lock_field,
        "type": "input",
        "label": "编号",
        "prop": "rongyuId"
    }, {
        ...lock_field,
        "type": "input",
        "label": "学籍号",
        "prop": "rongyuStudent"
    }, {
        ...lock_field,
        "type": "input",
        "label": "学期编号",
        "prop": "rongyuTerm"
    }, {
        "type": "input",
        "label": "荣誉名称",
        "prop": "rongyuTitle",
        rules: [{ required: true, message: "必填内容，不能为空", trigger: "blur" }],
    }, {
        "type": "radio",
        "label": "级别",
        "prop": "rongyuLevel",
        button: true,
        dicData: dict.szpj_level,
        value: '10',
        rules: [{ required: true, message: "必填内容，不能为空", trigger: "blur" }],
    }, {
        "type": "date",
        "label": "获奖时间",
        "prop": "rongyuDate",
        "valueFormat": "yyyy-MM-dd",
        format: "yyyy-MM-dd",
        rules: [{ required: true, message: "必填内容，不能为空", trigger: "blur" }],
    }, {
        "type": "input",
        "label": "评选单位",
        "prop": "rongyuSponsor",
        rules: [{ required: true, message: "必填内容，不能为空", trigger: "blur" }],
    }, {
        ...lock_field,
        "type": "input",
        "label": "创建人",
        "prop": "rongyuCreateUser"
    }, {
        ...lock_field,
        "type": "input",
        "label": "",
        "prop": "rongyuCreateTime"
    }, {
        ...lock_field,
        "type": "input",
        "label": "审核人",
        "prop": "rongyuApproveUser"
    }, {
        ...lock_field,
        "type": "input",
        "label": "",
        "prop": "rongyuApproveTime"
    }],
    group: [{
        label: "附件",
        column: [{
            "type": "upload",
            "label": "附件",
            "prop": "rongyuAttachment",
            "action": "/szpj/file/zp_rong_yu/upload",
            "multiple": true,
            rules: [{ required: true, message: "必填内容，不能为空", trigger: "blur" }],
        }],
    }],

}